-
Notifications
You must be signed in to change notification settings - Fork 113
Generate Builder methods on Beans #1162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate Builder methods on Beans #1162
Conversation
gmunozfe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for your contribution @cmoine-swi !
Great work!
Could you add also some integration tests for validating both values:
quarkus.openapi.generator.generate-builders=true/false
6efe4a5 to
5fa7ce6
Compare
|
@gmunozfe Thx, sorry for the delay. Please find the Integration Tests 😉 |
mcruzdev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @cmoine-swi, thanks a lot for this great feature and sorry for my delay.
I left some comments, could you take a look? Thanks again.
...io/quarkiverse/openapi/server/generator/deployment/codegen/ConfigurableGenerationConfig.java
Outdated
Show resolved
Hide resolved
...io/quarkiverse/openapi/server/generator/deployment/codegen/ConfigurableGenerationConfig.java
Outdated
Show resolved
Hide resolved
server/integration-tests/builders/src/main/java/io/petstore/PetStoreImpl.java
Outdated
Show resolved
Hide resolved
|
Hi @cmoine-swi! Imports are not sorted in ApicurioCodegenWrapper.java Try to run: mvn -f server net.revelc.code:impsort-maven-plugin:1.12.0:sort |
...on-tests/builders/src/test/java/io/quarkiverse/openapi/server/generator/it/PetStoreTest.java
Outdated
Show resolved
Hide resolved
mcruzdev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @cmoine-swi for your contribution, could you squash all commits in one :)
ad51850 to
be7821b
Compare
|
@all-contributors please add @cmoine-swi for code |
|
I've put up a pull request to add @cmoine-swi! 🎉 |
Implement #1160
Expose the option
generateBuildersfrom jsonschema2pojo